package com.karrysong.blog_springboot.controller;

import com.karrysong.blog_springboot.entity.User;
import com.karrysong.blog_springboot.util.UserThreadLocal;
import com.karrysong.blog_springboot.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TestController
 * @Author: KarrySong
 * @Date: 2022/8/5 9:06
 * @Description:
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping
    public Result test(){
        User sysUser = UserThreadLocal.get();
        System.out.println(sysUser);
        return Result.success(null);
    }

}
